package com.binance.binancedemo.recycler;

import android.graphics.Canvas;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 */
public interface ILinearDecoration {
    boolean setDecorationRect(BaseRecyclerCell pre, BaseRecyclerCell next, Rect outRect, Rect defaultRect);

    /**
     * @return 返回true的话就不会再绘制默认的Decoration了
     */
    boolean drawDecoration(Rect outRect, Canvas c, View itemView, RecyclerView parent, RecyclerView.State state);
}
